home *** CD-ROM | disk | FTP | other *** search
/ Alde ADA 5 #1 / ADA CD-ROM - Alde Publishing.iso / cm / countada.sid < prev    next >
Encoding:
Text File  |  1988-05-03  |  3.9 KB  |  80 lines

  1. --= SID = SIMTEL20 Ada Software Repository Item Description File = SID =--
  2. -- UNIT NAME         : CAS Ada Statement Counter
  3. -- VERSION           : 1.0
  4. -- REVIEW CODE       : 
  5. -- DDN ADDRESS       : 
  6. -- AUTHOR            : WIS JPMO
  7. --                   : Washington, D.C.  20330
  8. --                   : Contact: Lt. Colonel Falgiano
  9. --                   : ESD/SCW
  10. --                   : Hanscom AFB, MA  01731
  11. -- COPYRIGHT         : 
  12. -- DATE CREATED      : 1985
  13. -- DATE RELEASED     : 1985
  14. -- DATE LAST UPDATED : 1985
  15. -- LOCATION          : C2MUG
  16. -- LOCATION          : ASR
  17. -- ENVIRONMENT       : 
  18. --= CLASSIFICATION       ===============================================--
  19. -- CATEGORY LEVEL 1  : COMPONENTS
  20. -- CATEGORY LEVEL 2  : COUNT Ada STATEMENTS
  21. -- CATEGORY LEVEL 3  : Count of Ada Statements 1
  22. -- CATEGORY LEVEL 4  : 
  23. -- KEYWORD           : 
  24. -- INDEX             : Count Ada Statements
  25. -- INDEX             : Statements
  26. -- INDEX             : Statements, Ada
  27. -- TAXONOMY          : 
  28. -- DEPENDENCIES      : 
  29. -- SEE ALSO          : PD:<ADA.COMPONENTS>CAS2
  30. -- SEE ALSO          : PD:<ADA.COMPONENTS>CAS3
  31. -- SEE ALSO          : WIS_TOOL_32
  32. --= FILE LISTING         ===============================================--
  33. -- FILE SPECS        : PD:<ADA.COMPONENTS>COUNTADA.*
  34. -- DIRECTORY DISPLAY :
  35. -- Directory   PD:<ADA.COMPONENTS>
  36. --      File Name     Byte Count  Line Count
  37. --   ---------------  ----------  ----------
  38. --   COUNTADA.CMM           1217          33
  39. --   COUNTADA.PRO           4139          84
  40. --   COUNTADA.SRC           4587         135
  41. --   ===============  ==========  ==========
  42. --     3 Files              9943         252
  43. --= ABSTRACT             ===============================================--
  44. --         This function calculates  the  "statements"  of  a  valid  Ada
  45. -- fragment  specified by a FILE_NAME string parameter.  It need not be a
  46. -- complete  compilation  unit  but  it  should  have  closed  all   open
  47. -- parentheses and and string brackets.  The number of statements of code
  48. -- is returned as  an  integer.   The  Ada  statement  is  defined  by  a
  49. -- semicolon  terminator  outside  of comments, parentheses, or string or
  50. -- character literals.  The definition is insensitive  to  formatting  or
  51. -- layout of the source.  This copy of the function is embedded in a test
  52. -- and driver program.  The driver has a feature of  correcting  for  the
  53. -- common  error of leaving out the extensiOn on a file name.  The nature
  54. -- of this extension is system dependent and a ".TXT" extension is used.
  55. --= REVISION HISTORY     ===============================================--
  56. --
  57. -- DATE         VERSION AUTHOR                  HISTORY 
  58. -- 1985         1.0     WIS JPMO                Initial Release
  59. --= RELEASE NOTICE       ===============================================--
  60. -- This prologue must be included in all copies of this software.
  61. -- 
  62. -- This software is copyright by the author.
  63. -- 
  64. -- This software is released to the Ada community.
  65. -- This software is released to the Public Domain (note:
  66. --   software released to the Public Domain is not subject
  67. --   to copyright protection).
  68. -- Restrictions on use or distribution:  NONE
  69. --= DISCLAIMER           ===============================================--
  70. --     This software and its documentation are provided "AS IS" and
  71. -- without any expressed or implied warranties whatsoever.  No warranties
  72. -- as to performance, merchantability, or fitness for a particular
  73. -- purpose exist.
  74. --     The user is advised to test the software thoroughly before
  75. -- relying on it.  The user must assume the entire risk and liability of
  76. -- using this software.  In no event shall any person or organization of
  77. -- people be held responsible for any direct, indirect, consequential or
  78. -- inconsequential damages or lost profits.
  79. --======================================================================--
  80.